package cn.tedu.basic;

import java.io.Serializable;


/*本类对学生信息进行封装*/
public class Student implements Serializable {
    private static final long serialVersionUID = -3193364654654535741L;




    String id;//学号
    String name;//姓名
    int age;//年龄
    String clazz;//班级
    private int score;//记录最近一次成绩
    private int maxscore;//纪录最高成绩
    private String zh;//账号
    private String password;//密码
    public Student(String id, String name, int age, String clazz, String zh, String     password) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.clazz = clazz;
        this.zh = zh;
        this.password = password;

    }

    public Student() {
    }



    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public int getMaxscore() {
        return maxscore;
    }

    public void setMaxscore(int maxscore) {
        this.maxscore = maxscore;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getClazz() {
        return clazz;
    }

    public void setClazz(String clazz) {
        this.clazz = clazz;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", clazz='" + clazz + '\'' +
                ", score='" + score + '\'' +

                ", zh='" + zh + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
